/*
 * @Author: shanghongyun 2879455630@qq.com
 * @Date: 2025-05-28 13:49:43
 * @LastEditors: shanghongyun 2879455630@qq.com
 * @LastEditTime: 2025-05-28 13:50:08
 * @FilePath: \A05\App\task.h
 * @Description: 任务头文件
 */


#ifndef __TASK_H_
#define __TASK_H_

#include "Base.h"

typedef void (*Func_t)(void);

typedef struct{
    Func_t exe;             /*任务函数*/
    uint32_t delay_time;    /*任务运行周期*/
    uint32_t pre_time;      /*任务上次运行时间*/
}Task_t;


void Task_init(void);
void Task_create(Task_t *task , uint32_t delay , Func_t func);
void Task_run(Task_t *task);


void Task_scheduler(void);






#endif

